#@web_layout?()
#define css()
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/css/main.css?#(getUUID())"/>
<link rel="stylesheet" type="text/css" href="#(contextPath)/assets/front/web/css/layer.css?#(getUUID())" />
#end
#define content()
<div class="c-main" >
    <header class="g-header">
        <div class="u-logo"></div>
        <div class="u-btn">
            <div class="u-btn-logout" >退出账号</div>
            <div class="u-btn-release" data-href="#(contextPath)/platform/task/formNew" style="border-radius:3px;"  onclick="$de.jump(this)">任务发布</div>
        </div>
    </header>
    <div class="g-body">
        <nav class="g-nav">
            <i class="u-switch"></i>
            <div class="m-user">
                <div class="u-head" data-href="#(contextPath)/passport/detail?id=#(loginAccount.id)" onclick="$de.jump(this)">
                    <div class="u-head-img" style='background-image: url("#(contextPath)#(loginAccount.photo)")'></div>
                </div>
                <div class="u-text text-more" data-href="#(contextPath)/passport/detail?id=#(loginAccount.id)" onclick="$de.jump(this)">#(loginAccount.mobile)</div>
            </div>
            <ul class="m-list">
                <li class="m-item m-item-active" data-href="#(contextPath)/platform/welcome">
                    <i class="u-icon u-icon-home"></i>
                    <span class="u-text">首页</span>
                </li>
                <li class="m-item" data-href="#(contextPath)/platform/task">
                    <i class="u-icon u-icon-task"></i>
                    <span class="u-text">任务</span>
                </li>
                <li class="m-item" data-href="#(contextPath)/platform/fair">
                    <i class="u-icon u-icon-fair"></i>
                    <span class="u-text">网红</span>
                </li>
                <li class="m-item" data-href="#(contextPath)/platform/feedback">
                    <i class="u-icon u-icon-feedback"></i>
                    <span class="u-text">反馈</span>
                </li>
            </ul>
        </nav>
        <section class="g-section">
            <header class="m-notice">
                <div class="u-box">
                    <div class="u-icon"></div>
                    <span class="u-text" data-href="#(contextPath)/passport/form">最新消息:</span>
                    ###<span class="u-name">犀利的大菜菜</span>
                    <span class="u-content" id="content">
                    #if(isTooLong(record.msg,40))
                    	#(maxLength(record.msg,40)) <a href="javascript:;" onclick="showMsg()" style="color:#ccc9c9">[查看详情]</a> #(record.create_time??'')
                    	<input type="hidden" value="#(record.msg)" id="msg">
                    #else
                    	#(record.msg??'暂无最新消息') #(record.create_time??'')
                    #end
                    </span>
                    <span class="u-time" id="msgTime"></span>
                </div>
            </header>
            <article class="g-article">
                <iframe class="g-article-iframe" src="#(contextPath)/platform/welcome"></iframe>
            </article>
        </section>
    </div>
</div>
#end
#define script()

<script src="#(contextPath)/assets/front/im/protobuf/long.js"></script> 
<script src="#(contextPath)/assets/front/im/protobuf/bytebuffer.js"></script>
<script src="#(contextPath)/assets/front/im/protobuf/protobuf.js"></script>
<script src="#(contextPath)/assets/front/im/im.js"></script>
<script>
	connectionConfig();
	var contextPath = '#(contextPath)';
</script>
<script type="application/javascript" data-main="#(contextPath)/assets/front/web/script/main"
        src="#(contextPath)/assets/front/web/script/require.js"></script>
#end